﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="DeptSchedule.aspx.cs" Inherits="ScheduleManager_DeptSchedule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/ScheduleManagerCss.css" />
    <script type="text/javascript">
        function Getlbtext(txtDate) {
            var date =txtDate.value;
            var lbDate = document.getElementById("<%=this.lbDate.ClientID %>");
            lbDate.setAttribute("text", "date");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            部门日程</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr />
        <div>
            <div>
                选择部门：<asp:TextBox ID="txtDept" runat="server"></asp:TextBox>日期：<input id="txtDate"
                    type="text" runat="server" onblur="Getlbtext(this);" />姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox></div>
            <div>
                <asp:ImageButton ID="imbtnSerch" runat="server" ImageUrl="~/imges/serch.jpg" Height="17px"
                    OnClick="imbtnSerch_Click" />
            </div>
        </div>
        <div>
            <div style="background-color: #64cdfc; height: 20px; width: 780px; margin-left: 50px;">
                <asp:Label ID="lbDate" runat="server" Text="Label"></asp:Label>
            </div>
            <div style="width: 780px; margin-left: 50px;">
                <asp:GridView ID="GridView1" Width="780px" runat="server" AutoGenerateColumns="False"
                    BorderColor="Aqua">
                    <Columns>
                        <asp:BoundField HeaderText="人员姓名" DataField="CreateUser" />
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                <asp:Label ID="lb0" runat="server" Text="星期日" ForeColor="Red"></asp:Label>
                                <asp:Label ID="lb2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                星期一
                                <asp:Label ID="lb2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                星期二
                                <asp:Label ID="lb2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                星期三
                                <asp:Label ID="lb2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                星期四
                                <asp:Label ID="lb2" runat="server" Text='<%#  Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                星期五
                                <asp:Label ID="lb2" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label6" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <HeaderTemplate>
                                <asp:Label ID="lb7" runat="server" Text="星期六" ForeColor="Red"></asp:Label>
                                <asp:Label ID="lb6" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label7" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#64CDFC" Font-Size="12px" ForeColor="White" Height="25px" />
                    <RowStyle Height="20px" Font-Size="12px" />
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
